from langchain_core.prompts import PromptTemplate

template = """I want you to act as a naming consultant for new companies. What is a good name for a company that makes {product}?"""
prompt = PromptTemplate(input_variables=["product"], template=template)

# 格式化提示词并输出结果
formatted_prompt = prompt.format(product="colorful socks")
print("格式化后的提示词:")
print(formatted_prompt)
